home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / lists / mint / l_0799 / 524 < prev    next >
Encoding:
Internet Message Format  |  1994-08-27  |  1.4 KB

  1. From: Stephen Usher <Stephen.Usher@earth.ox.ac.uk>
  2. Subject: Re: gethostname library function
  3. Date: Wed, 6 Oct 1993 17:03:29 +0100 (BST)
  4. In-Reply-To: <9310061543.AA00431@phlem.ph.kcl.ac.uk> from "sjg@phlem.ph.kcl.ac.uk" at Oct 6, 93 04:43:08 pm
  5. Mime-Version: 1.0
  6.  
  7. >Looking at the function in the library, it seems to do the following:
  8. >
  9. >    o Check for a HOSTNAME environment variable
  10. >    o Look for a file /local/hostname and use the contents
  11. >
  12. >I think it would be more unix-like to reverse the order of those 2
  13. >things, and make the file /etc/hostname rather than /local/hostname.
  14. >I suppose to maintain compatibility, it will have to do:
  15. >
  16. >    o Look for a file /etc/hostname and use the contents
  17. >    o Check for a HOSTNAME environment variable
  18. >    o Look for a file /local/hostname and use the contents
  19. >
  20. >Comments ?
  21.  
  22. I agree, even better would be not to trust the HOSTNAME environment
  23. variable! :-)
  24.  
  25. I believe MiNT should hold at least two things..
  26.     A hostname
  27.     A domainname
  28.  
  29. In a root read-writable, non-root read-only shared memory segment.
  30.  
  31. It would be nice if it could hold other such information as well (such as
  32. possibly an IP address etc).
  33.  
  34. >
  35. >Simon.
  36. >
  37.  
  38. Steve
  39.  
  40. -- 
  41. ---------------------------------------------------------------------------
  42. Computer Systems Administrator, Dept. of Earth Sciences, Oxford University.
  43. E-Mail: steve@uk.ac.ox.earth (JANET) steve@earth.ox.ac.uk (Internet).
  44. Tel:- Oxford (0865) 282110 (UK) or +44 865 282110 (International).
  45.